package jsu.lipengcheng.trafficnet.service;

import jakarta.servlet.http.HttpServletResponse;
import jsu.lipengcheng.trafficnet.common.PageResult;
import jsu.lipengcheng.trafficnet.pojo.Ticket;
import jsu.lipengcheng.trafficnet.pojo.TicketVO;
import org.apache.ibatis.annotations.Mapper;

import java.io.IOException;
import java.time.LocalDate;
import java.util.List;


public interface TicketService {
    List<TicketVO> selectuserbyid();

    PageResult selectall(Integer userId, LocalDate createTime,int page, int pageSize);

    void insertticket(Ticket ticket);

    void updateticket(Ticket ticket);

    Ticket selectbyid(int id);

    void deleteticket(int id);

    int selectsum();

    void donwload(HttpServletResponse response) throws IOException;

    void saveBatch(List<Ticket> tickets);
}
